TotalPoll\Poll\Model D

Total Complexity 209
Dependencies 18
Dependents 4
Total lines 2,022
Lines of code 815
Logical lines of code 441
Comment lines 892
Methods 110
Properties 23

Methods 110

Method Rating Maintainability Complexity Lines of code
__construct()
C
26
23 169
getSettings()
S
61 6 11
getQuestions()
S
61 5 11
addChoice()
S
50 3 29
removeQuestion()
S
60 4 13
getChoicesWhere()
S
60 4 13
getQuestionsWhere()
S
60 4 13
getTimeLeftToStart()
S
64 4 9
getTimeLeftToEnd()
S
64 4 9
setChoice()
S
58 3 15
isAcceptingVotes()
S
60 3 14
removeChoice()
S
61 3 12
setQuestion()
S
62 3 11
hasVoted()
S
64 3 11
getShareAttributes()
S
55 2 19
toArray()
S
58 2 16
orderByPosition()
S
65 3 9
getChoiceVotesPercentage()
S
63 3 9
orderByVotes()
S
65 3 9
getReceivedQuestions()
S
63 3 10
getReceivedChoices()
S
63 3 10
getFooter()
S
65 3 9
getHeader()
S
65 3 9
getFields()
S
58 2 15
getViewVariables()
S
57 2 15
getSeoAttributes()
S
60 2 13
save()
S
61 2 13
getChoiceVotesFormatted()
S
58 1 16
getForm()
S
70 2 6
getThumbnail()
S
70 2 5
offsetGet()
S
78 2 3
getUrl()
S
71 2 5
render()
S
70 2 6
isMigrated()
S
77 2 3
getQuestionChoicesCount()
S
77 2 3
getErrorMessage()
S
79 2 3
getHiddenResultsContent()
S
77 2 3
getChoicesRows()
S
71 2 5
incrementChoiceVotes()
S
63 2 10
getChoices()
S
68 2 7
getChoice()
S
77 2 3
getQuestion()
S
78 2 3
getQuestionChoices()
S
78 2 3
getQuestionVotes()
S
78 2 3
isResultsHidden()
S
71 2 5
getQuestionUidByChoiceUid()
S
78 2 3
getChoiceVotes()
S
70 2 6
getChoiceVotesNumber()
S
67 2 7
getChoiceVotesWithLabel()
S
66 2 7
getAjaxUrl()
S
59 1 14
jsonSerialize()
S
81 1 3
offsetExists()
S
80 1 3
isPasswordProtected()
S
80 1 3
offsetSet()
S
91 1 2
isPaginated()
S
80 1 3
offsetUnset()
S
91 1 2
getChoicesCount()
S
80 1 3
getTitle()
S
82 1 3
orderByLabel()
S
82 1 3
orderByRandom()
S
82 1 3
addQuestion()
S
91 1 2
refreshUid()
S
76 1 4
hasBelowResultsContent()
S
78 1 3
getUid()
S
81 1 3
getId()
S
81 1 3
getPollPost()
S
82 1 3
getSettingsItem()
S
77 1 3
setSettings()
S
81 1 3
isScreen()
S
80 1 3
isWelcomeScreen()
S
80 1 3
isVoteScreen()
S
80 1 3
isThankYouScreen()
S
80 1 3
isResultsScreen()
S
80 1 3
getAction()
S
82 1 3
setForm()
S
80 1 3
hasAboveResultsContent()
S
78 1 3
getQuestionsForResults()
S
70 1 7
getThankyouContent()
S
80 1 3
getWelcomeContent()
S
80 1 3
getTotalVotesWithLabel()
S
77 1 3
getQuestionsForVote()
S
70 1 7
getScreen()
S
82 1 3
getPrefix()
S
77 1 3
getRestrictions()
S
82 1 3
getBelowVoteContent()
S
80 1 3
getLimitations()
S
82 1 3
getError()
S
82 1 3
getColumnWidth()
S
75 1 4
getChoiceVotesPercentageWithLabel()
S
79 1 3
getQuestionsCount()
S
80 1 3
getQuestionVotesWithLabel()
S
74 1 4
getAboveVoteContent()
S
80 1 3
getTotalVotesNumber()
S
80 1 3
hasBelowVoteContent()
S
78 1 3
getTotalVotes()
S
82 1 3
hasAboveVoteContent()
S
78 1 3
hasThankyouContent()
S
78 1 3
hasWelcomeContent()
S
78 1 3
hasError()
S
80 1 3
setError()
S
81 1 3
getPermalink()
S
80 1 3
setAction()
S
80 1 3
getBelowResultsContent()
S
80 1 3
setScreen()
S
76 1 4
setSettingsItem()
S
79 1 3
getAdminExportAsLink()
S
74 1 4
getAdminEditLink()
S
78 1 3
getPresetUid()
S
79 1 3
getTemplateId()
S
79 1 3
getAboveResultsContent()
S
80 1 3